UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All system command files must have mode 0755 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-794 GEN001200 SV-64477r1_rule ECLP-1 Medium
Description
Restricting permissions will protect system command files from unauthorized modification. System command files include files present in directories used by the operating system for storing default system executables and files present in directories included in the system's default executable search paths.
STIG Date
Oracle Linux 5 Security Technical Implementation Guide 2015-03-26

Details

Check Text ( C-52895r1_chk )
Check the permissions for files in /etc, /bin, /usr/bin, /usr/lbin, /usr/usb, /sbin, and /usr/sbin.

Procedure:
# DIRS="/etc /bin /usr/bin /usr/lbin /usr/usb /sbin /usr/sbin";for DIR in $DIRS;do find $DIR -type f -perm +022 -exec stat -c %a:%n {} \;;done

This will return the octal permissions and name of all group or world writable files. If any file listed is world or group writable (either or both of the 2 lowest order digits contain a 2, 3 or 6), this is a finding.

Note: Elevate to Severity Code I if any file listed is world-writable.
Fix Text (F-55071r2_fix)
Change the mode for system command files to 0755 or less permissive taking into account necessary GIUD and SUID bits.

Procedure:
# chmod go-w